package com.hunk.core.json.base;

import org.codehaus.jackson.annotate.JsonProperty;

/** Description:<br>
 * @author Hunk
 * @since 2013-4-8
 * @param <T>
 */
@org.codehaus.jackson.annotate.JsonAutoDetect
public class JsonResponse<T> {
	@JsonProperty
	boolean result = false;
	@JsonProperty
	T resp;
	@JsonProperty
	String error;	
	
	public JsonResponse(String error) {
		super();
		this.error = error;
	}
	
	public boolean isResult() {
		return result;
	}
	public void setResult(boolean result) {
		this.result = result;
	}
	public T getResp() {
		return resp;
	}
	public void setResp(T resp) {
		this.resp = resp;
	}
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	
}
